package com.example.demo.service.impl;

import com.example.demo.domain.RoleMenu;
import com.example.demo.mapper.RoleMenuMapper;
import com.example.demo.service.IRoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleMenuServiceImpl implements IRoleMenuService {

    @Autowired
    private RoleMenuMapper roleMenuMapper;

    @Override
    public void addRoleMenu(RoleMenu roleMenu) {
        roleMenuMapper.addRoleMenu(roleMenu);
    }

    @Override
    public RoleMenu getByRoleIdAndMenuId(Long roleId, Long menuId) {
        return roleMenuMapper.getByRoleIdAndMenuId(roleId,menuId);
    }
}
